<template>
	<view class="content">
			<u-popup mode="center" :show="showControl" @close="showControl = false" :round="50">
				<view class="pop user-pop">
					<view class="title">
						<text>请选择管控卡</text>
					</view>
					<view class="form">
						<!-- <formArea :value="form.city" :labelWidth="134"  @onChange="(e) => form.city = e"></formArea> -->
						<view class="form-item2">
							<view class="label">管控卡名称</view>
							<view class="shape"></view>
							<view class="input">
								<u--input placeholderClass="input-placeholder" class="input-body" v-model="searchName"></u--input>
							</view>
						</view>
						<view class="actions">
							<view class="action" @click="searchName = controlName = ''">
								<text>重</text>
								<text>置</text>
							</view>
							<view class="action search" @click="controlName = searchName">
								<text>查</text>
								<text>询</text>
							</view>
						</view>
					</view>
					<view class="body">
						<view class="item" v-for="(item, idx) in controlList.filter(o => o.name.indexOf(controlName) !== -1)" :key="item.id"
							@click="handleSelectControl(item.id)">
							<view :class="`check ${selectedControl.indexOf(item.id) !== -1 ? 'check__active' : ''}`">
								<view class="check-on"></view>
							</view>
							<view class="name">{{item.name}}{{controlName}}</view>
						</view>
					</view>
					<view class="custom-button" @click="handleConfirmControl()">
						确认（{{selectedControl.length}}）
					</view>
				</view>
			</u-popup>
			<!-- <u-picker :show="showControl" keyName="name" :columns="controlList" closeOnClickOverlay @cancel="showControl = false"
				@close="showControl = false" @confirm="_setControl"></u-picker> -->
			<u-picker :show="showType" keyName="dict_label" :columns="typeList" closeOnClickOverlay @cancel="showType = false"
				@close="showType = false" @confirm="_setCurType"></u-picker>
			<u-datetime-picker :show="showStart" v-model="startStamp" closeOnClickOverlay mode="datetime"
				@confirm="confirmStart" @cancel="showStart = false" @close="showStart = false"></u-datetime-picker>
			<view class="section-4">
				<view class="section-body">
					<view class="tab">
						<view @click="setCurIdx(idx, item.name)"  :class="`item ${curName === item.name ? 'item__active' : ''} ${curIdx + 1 === idx ? 'item__active_next' : ''}`" v-for="(item, idx) in tabList" :key="item.id">
							<view class="label">
								{{item.name}}
							</view>
							<view class="shape">
								<view class="shape-body"></view>
							</view>
							<view class="shape shape-mirrow">
								<view class="shape-body"></view>
							</view>
						</view>
					</view>
				</view>
			</view>
			<!-- <view class="section-5">
				<view class="section-bdoy"></view>
			</view> -->
			<!-- <view class="section-0">
				<view class="wrapper">
					<view class="label">会议类型</view>
					<view class="value">
						<view class="picker" @click="showType = true">
							<text>{{curType}}</text>
							<text class="iconfont icon-xiala"></text>
						</view>
					</view>
				</view>
			</view> -->
			<view v-show="curIdx == 0">
			<!-- <view class="section-0">
				<view class="wrapper">
					<view class="label"><span style='color: red;'>*</span> 会议类型</view>
					<view class="value">
						<view class="input-2">
							<u--input
								placeholderClass="input-placeholder"
								class="input-body"
							    placeholder="请输入会议类型"
							    v-model="curValue"
							  ></u--input>
						</view>
					</view>
				</view>
			</view> -->
			<view class="section-0">
				<!-- <view class="wrapper">
					<view class="title"><span style='color: red;'>*</span> 会议名称
						<view class="iconfont icon-bianji"></view>
					</view>
					<view class="value l-value">
						<view class="input">
							<u--input placeholderClass="input-placeholder" class="input-body" placeholder="请填写会议名称..."
								v-model="name"></u--input>
						</view>
					</view>
				</view> -->
				<view class="wrapper">
					<view class="label"><span style='color: red;'>*</span> 会议名称</view>
					<view class="value">
						<view class="input-2">
							<u--input
								placeholderClass="input-placeholder"
								class="input-body"
							    placeholder="请填写会议名称"
							    v-model="name"
							  ></u--input>
						</view>
					</view>
				</view>
			</view>
			<view class="section-0">
				<view class="wrapper">
					<view class="label"><span style='color: red;'>*</span> 会议日期</view>
					<view class="value">
						<view class="date" @click="showStart = true">
							<view class="input-body">{{start}}</view>
							<view class="iconfont icon-rili"></view>
						</view>
					</view>
				</view>
			</view>
			<view class="section-0">
				<view class="wrapper">
					<view class="label"><span style='color: red;'>*</span> 会议时长</view>
					<view class="value">
						<view class="input-2">
							<u--input
								placeholderClass="input-placeholder"
								class="input-body"
								type="number"
							    placeholder="请输入会议时长"
							    v-model="meeting_duration"
							  ></u--input>
							  <view class="iconfont">分钟</view>
						</view>
					</view>
				</view>
			</view>
			<!-- <view class="section-0">
				<view class="wrapper wrapper-title">
					<view class="title">会议纪要<view style="color: #0535d6;" class="iconfont icon-jiahao"></view>
					</view>
					<view class="value l-value">
						<view class="textarea">
							<u--textarea :maxlength="-1" placeholderClass="textarea-placeholder" class="textarea-body"
								placeholder="输入备注内容..." v-model="memo" border='null'></u--textarea>
						</view>
					</view>
				</view>
			</view> -->
			<view class="section-0">
				<view class="wrapper wrapper-title">
					<view class="title">会议内容
					</view>
					<view class="value l-value">
						<view class="textarea">
							<u--textarea :maxlength="-1" placeholderClass="textarea-placeholder" class="textarea-body"
								placeholder="输入会议内容..." v-model="memo" border='null'></u--textarea>
						</view>
					</view>
				</view>
			</view>
			<view class="section-0">
				<view class="wrapper">
					<view class="label">会议照片</view>
					<view class="value">
						<!-- <view class="upload-wrap" :style="{border: fileList.length == 0 ? 'solid 2rpx #0535d6' : 'unset'}"> -->
							<u-upload :fileList="fileList" :previewFullImage="true" @afterRead="afterRead($event, 'fileList')"
								@delete="deleteMedia($event, 'fileList')" multiple :maxCount="9">
								<!-- <view class="iconfont icon-tupian"></view> -->
							</u-upload>
						<!-- </view> -->
					</view>
				</view>
			</view>

			<view class="section-0">
				<view class="wrapper">
					<view class="label">现场视频</view>
					<view class="value">
						<!-- <view class="upload-wrap" :style="{border: file_name === '' ? 'border: solid 2rpx #0535d6;' : 'unset'}">
							<view v-if="file_name === ''" class="iconfont icon-tupian"></view>
							<view class="file_name" v-if="file_name !== ''">{{file_name}}</view>
						</view> -->
						<view class="upload-wrap" :style="{border: fileVideoList.length == 0 ? 'solid 2rpx #0535d6' : 'unset'}">
							<u-upload accept='video' :fileList="fileVideoList" :previewFullImage="true" @afterRead="afterRead($event, 'fileVideoList')"
								@delete="deleteMedia($event, 'fileVideoList')" multiple :maxCount="1"
								:style="{position:'relative', height: fileVideoList.length == 0 ? '44rpx' : 'unset', borderRadius: '20rpx'}"
							>
								<view class="iconfont icon-shipin-tianchong"></view>
							</u-upload>
						</view>
					</view>
				</view>
			</view>
			<view class="section-0">
				<view class="wrapper">
					<view class="label">现场录音</view>
					<view class="value">
						<view class="audio" @click="handleRecord()">
							<view :class="`audio-center ${recordStatus === 'on'? 'audio-center__on' : ''} ${recordStatus === 'fin'? 'audio-center__fin' : ''}`"></view>
						</view>
						<view class="fin-tips" v-if="recordStatus === 'fin'">录音文件已上传</view>
						<view class="time">{{timecount}}</view>
					</view>
				</view>
			</view>

			<view class="section-1" @click="showControl = true">
				<view class="label">关联管控卡</view>
				<view class="name">{{project_manage_name}}</view>
				<view class="iconfont icon-wode-bangdingguanxi"></view>

			</view>
			<view class="footer-space"></view>
			<view class="footer">
				<!-- <view class="record" @click="go()">
					<view class="iconfont icon-lishijilu_huaban"></view>
					<text>历史记录</text>
				</view> -->
				<!-- <view v-show="show == 1" class="submit" @click="">
					提交
				</view> -->
				<view class="submit" @click="submit">
					提交
				</view>
			</view>
		</view>

		<view v-show="curIdx == 1">

			<view class="section-01" >
				<view class="section-body">
					<view class="frequency">{{nick_name}} 会议</view>
				</view>
			</view>
			<view class="section-11">
				<view class="list">
					<view @click="go1(item)" class="item" v-for="item in list" :key="item.id">
						<view class="text">
							<view class="poss">{{item.meeting_name}}</view>
							<view class="iconfont icon-xiangyou1"></view>
						</view>
						<view class="text-1">{{item.meeting_time.substring(0, 10)}}<text style="margin-left: 20rpx;">{{item.meeting_duration}}分钟</text></view>
					</view>
				</view>
			</view>
		</view>


	</view>
</template>

<script>
	import { performMeettingListDetailApi } from '@/api/statistics.js';
	import { mapGetters, mapActions} from 'vuex';
	import { addMeeting,detailsApi } from '@/api/meeting.js';
	import { uploadUrl } from '@/baseUrl.js';
	import { typeSearchApi } from '@/api/statistics.js';
	var recordObj = '';
	const recorderManager = uni.getRecorderManager();
	const innerAudioContext = uni.createInnerAudioContext();
	innerAudioContext.autoplay = true;
	export default {
		data() {
			return {
				jlFlag: true,
				user_name: '',
				list:[],
				type: 1,
				// nick_name:''
				nick_name:'',
				// show:'',
				// meetingId:'',//会议id
				curName: '会议信息',
				curIdx: 0,
				tabList: [
					{ name: '会议信息'},
					{ name: '整理会议'},
				],
				searchName: '',
				controlName: '',
				selectedControl: [],
				timecount: '00:00:00',
				hour: 0,
				minute: 0,
				second: 0,
				timer1:'',
				isZant: false,
				gotime:0,
				typeList: [
					 [
						{
							"dict_code": 283,
							"dict_label": "例会",
							"dict_value": "1"
						},
						{
							"dict_code": 284,
							"dict_label": "站班会",
							"dict_value": "2"
						},
						{
							"dict_code": 285,
							"dict_label": "安委会",
							"dict_value": "3"
						},
						{
							"dict_code": 286,
							"dict_label": "启委会",
							"dict_value": "5"
						},
						{
							"dict_code": 287,
							"dict_label": "协调会",
							"dict_value": "6"
						},
						{
							"dict_code": 412,
							"dict_label": "第一次工地例会",
							"dict_value": "7"
						}
					]
				],
				curType: '例会',
				memo: '',
				name: '',
				showType: false,
				start: '',
				startStamp: Number(new Date()),
				showStart: false,
				fileList: [],
				fileVideoList: [],
				form: {
					meeting_name: '',
					meeting_type: '',
					meeting_time: '',
					meet_file_content: '',
					meeting_file_id: '',
					meeting_av_id: '',
					meeting_audio_id: '',
					project_manage_id: '',
					meeting_duration: ''
				},
				curValue: '',
				recordStatus: 'off',
				loading: false,
				timer: null,
				showControl: false,
				project_manage_id: '',
				project_manage_name: '',
				controlList: [],
				meeting_duration: ''
			}
		},
		computed: {
			...mapGetters({
				curProject: 'system/getCurProject',
				userInfo: 'system/getUserInfo'
			})
		},
		onShow() {
			this.nick_name = this.userInfo.nick_name
			this.fetchData()
		},
		onLoad(e) {
			recordObj = plus.audio.getRecorder();
		},
		onUnload() {
			if(this.timer1) {
				clearTimeout(this.timer1);
				this.timer1 = '';
			}
		},
		onReady() {
			this.nick_name = this.userInfo.nick_name
			this.typeSearch();
			this.fetchData();
		},
		beforeDestroy() {
			clearInterval(this.timer);
			this.timer = null;
		},

		methods: {
			// renderDate() {
			// 	let str = ''
			// 	if (this.type == 1) {
			// 		str = '本日';
			// 	}
			// 	if (this.type == 2) {
			// 		str = '本周';
			// 	}
			// 	if (this.type == 3) {
			// 		str = '本月';
			// 	}
			// 	if (this.type == 4) {
			// 		str = '全部';
			// 	}
			// 	return str;
			// },
			go1(item) {
				uni.navigateTo({
					url: "/pages/statistics/comprehensive/duty/meeting/list/info/index?id=" + item.id + '&show=1'
				})
			},
			async fetchData() {
				console.log(this.nick_name)
				uni.showLoading({title: '加载中...'});
				const { data } = await performMeettingListDetailApi({

					user_name: this.nick_name,
					time_type: 4,
				});
				if (data.code === 1) {
					console.log('1111')
					this.list = data.data.filter(item => item.project_id === this.curProject.id);
				}
				uni.hideLoading();
			},
			setCurIdx(idx, name) {
				this.curIdx = idx;
				this.curName = name;
				// if(name == '整理会议'){
				// 	uni.navigateTo({
				// 		url:'/pages/statistics/comprehensive/duty/meeting/list/index?show=1' + '&nick_name=' + this.nick_name
				// 	})
				// }
			},
			handleSelectControl(id) {
				const index = this.selectedControl.indexOf(id);
				if (index === -1) {
					this.selectedControl.push(id);
				} else {
					this.selectedControl.splice(index, 1);
				}
			},
			handleConfirmControl() {
				this.project_manage_id = this.selectedControl.join(',');
				this.project_manage_name = this.controlList.filter(item => this.selectedControl.indexOf(item.id) !== -1).map(item => item.name).join(',');
				this.showControl = false;
			},
			// 点击开始录音就开始计时
			getTimeInterval(){
				if (this.timer1) {
					clearInterval(this.timer1);
					return;
				}
				this.timer1 = setInterval(()=> {
					this.second += 1;
					if(this.second >= 60){
						this.minute += 1;
						this.second = 0;
					}
					if(this.minute >= 60 && this.second >= 60){
						this.minute += 0;
						this.hour += 1;
					}
					this.timecount = this.showNum(this.hour)+":"+this.showNum(this.minute)+":"+this.showNum(this.second);
				},1000);

			},
			showNum(num) {
				if (num < 10) {
					return '0' + num
				}
				return num
			},


			go() {
				const params = {
					type: 'history',
					user_name: this.userInfo.nick_name,
				}
				uni.navigateTo({
					url: '/pages/statistics/comprehensive/duty/meeting/list/index?params=' + JSON.stringify(params)
				})
			},
			handleRecord() {
				// this.timecount = '00:00:00';
				// this.hour = 0;
				// this.minute = 0;
				// this.second = 0;
				if (this.recordStatus === 'fin') {
					return;
				} else if (this.recordStatus === 'off') {
					this.recordStatus = 'on';
					this.getTimeInterval()
					this.startRecord();
				} else if (this.recordStatus === 'on') {
					this.recordStatus = 'fin';
					this.gotime == 1
					this.getTimeInterval()
					this.endRecord();
				}
			},
			startRecord() {
				let _this = this;
				recordObj.record({filename:"_doc/audio/"}, async (url) => {
					_this.loading = true;
					uni.showLoading({title: '上传中...'});
					const result = await this.uploadFilePromise(url)
					_this.meeting_audio_id = result.data.file_id;
					uni.hideLoading();
					_this.loading = false;
				}, (e) => {
					console.log(e, 'error');
					uni.showToast(
						{title: '请检查权限', duration: 1000, icon: 'none' }
					);
				});
			},
			endRecord() {
				recordObj.stop();
			},
			async submit() {
				if (this.recordStatus === 'on') {
					this.loading = true;
					this.endRecord();
					this.recordStatus = 'fin';
				}
				let obj = {}
				obj.project_id = this.curProject.id
				obj.meeting_name = this.name
				obj.meeting_type = this.curValue
				obj.meeting_time = this.start
				obj.meet_file_content = this.memo
				obj.meeting_file_id = this.fileList[0]? this.fileList.map((obj)=>{
						  return  obj.file_id
						}).join(","):''
				obj.meeting_av_id = this.fileVideoList[0] ? this.fileVideoList[0].file_id : ''
				obj.project_manage_id =  this.project_manage_id
				obj.user_name = this.userInfo.nick_name
				obj.meeting_duration = this.meeting_duration
				let limit = 25;
				this.timer = setInterval(() => {
					limit--;
					if (!this.loading || limit <= 0) {
						obj.meeting_audio_id = this.meeting_audio_id
						// this.jlFlag = false
						// setTimeout(function() {
							this.handleSubmit(obj);
						// 	that.jlFlag = true
						// }, 1000);

						clearInterval(this.timer);
						this.timer = null;
					}
				}, 200);
			},
			async handleSubmit(obj) {
				if(this.name == '' || this.start == '' || this.meeting_duration == ''){
					// uni.showToast({
					// 	title:'带*号为必填项',
					// 	icon:'none',
					// 	duration:1500
					// })

					uni.showModal({
						title: '提示',
						content: '带*号为必填项,请注意填写完整',
						showCancel: false, // 是否显示取消按钮，默认为 true
						confirmColor: '#f55850',
						// cancelColor: '#39B54A',
						success: (res) => {
							if(res.confirm) {

							} else {

							}
						}
					})
					return
				}
				uni.showLoading({title: '提交中...'});
				const { data } = await addMeeting(obj);
				uni.hideLoading();
				if (data.code == 1) {
					uni.showToast(
						{title: '提交成功', duration: 1000, icon: 'success' }
					);
					setTimeout(function() {
						uni.navigateBack()
					}, 1000);
					// uni.navigateBack({
					// 	delta: 1
					// })
				}
			},
			async typeSearch(obj) {
				uni.showLoading({title: '加载中...'});
				const { data } = await typeSearchApi({type: '会议', project_id: this.curProject.id});
				uni.hideLoading();
				if (data.code == 1) {
					let arr = data.data.map(item => ({...item, name: item.name.substring(3, item.name.length)}))
					this.controlList = arr;
				}
			},
			// 删除
			deleteMedia(event, type) {
				this[type].splice(event.index, 1)
			},
			// 新增
			async afterRead(event, type) {
				// 当设置 mutiple 为 true 时, file 为数组格式，否则为对象格式
				let lists = [].concat(event.file)
				let fileListLen = this[type].length
				lists.map((item) => {
					this[type].push({
						...item,
						status: 'uploading',
						message: '上传中'
					})
				})

				for (let i = 0; i < lists.length; i++) {
					if (type == 'fileVideoList') {
						uni.showLoading({
							title: '视频压缩中...'
						})
						uni.getVideoInfo({
							src: lists[i].url,
							success: async (res) => {
								console.log(res, 8899)
							},
							fail: async (res) => {
								console.log(res, 7788)
							}
						})
						uni.compressVideo({
							src: lists[i].url,
							quality: 'low',
							// resolution: 0.6,
							// fps: 23,
							// bitrate: 350,
							success: async (res) => {
								console.log(res, 'videoSuccess')
								const filePath = res.tempFilePath;
								const result = await this.uploadFilePromise(filePath)
								let item = this[type][fileListLen]
								this[type].splice(fileListLen, 1, Object.assign(item, {
									status: 'success',
									message: '',
									file_id: result.data.file_id
								}))
								fileListLen++
							},
							fail: async (res) => {
								console.log(res, 'videoErr')
								const result = await this.uploadFilePromise(lists[i].url)
								let item = this[type][fileListLen]
								this[type].splice(fileListLen, 1, Object.assign(item, {
									status: 'success',
									message: '',
									file_id: result.data.file_id
								}))
								fileListLen++
							},
							complete(res,) {
								console.log(res, 'videoComplete')
								uni.hideLoading();
							}
						})
					} else {
						const result = await this.uploadFilePromise(lists[i].url)
						let item = this[type][fileListLen]
						this[type].splice(fileListLen, 1, Object.assign(item, {
							status: 'success',
							message: '',
							file_id: result.data.file_id
						}))
						fileListLen++
					}
				}
				console.log(this.fileList,213);
			},
			uploadFilePromise(url) {
				return new Promise((resolve, reject) => {
					uni.uploadFile({
						url: uploadUrl, // 仅为示例，非真实的接口地址
						filePath: url,
						name: 'file',
						success: (res) => {
							console.log(res, 'uploadSuccess')
							resolve(JSON.parse(res.data))
						},fail(res) {
							console.log(res, 'uploadErr')
						}
					});
				})
			},
			_setCurType(e) {
				this.curType = e.value[0].dict_label;
				this.curValue = e.value[0].dict_code;
				this.showType = false;
			},
			_setControl(e) {
				this.project_manage_id = e.value[0].id;
				this.project_manage_name = e.value[0].name;
				this.showControl = false;
			},
			formatDate(timeStamp) {
				const date = new Date(timeStamp); //时间戳为10位需*1000，时间戳为13位的话不需乘1000
				const Y = date.getFullYear() + '-';
				const M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
				const D = date.getDate() < 10 ? '0' + date.getDate() + ' ' : date.getDate() + ' ';
				const h = (date.getHours() < 10 ? "0" + date.getHours() :  date.getHours()) + ':';
				const m = (date.getMinutes() < 10 ? "0" + date.getMinutes() :  date.getMinutes()) + ':';
				const s = (date.getSeconds() < 10 ? "0" + date.getSeconds() :  date.getSeconds());
				return Y + M + D + h + m + s;
			},
			confirmStart(val) {
				const timeStamp = val.value;
				this.start = this.formatDate(timeStamp);
				this.showStart = false;
				this.form.meeting_time = this.start;
			},
		}
	}
</script>

<style lang="scss" scoped>
	/deep/ .uni-picker-view-content>* {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		padding: 0 10rpx;
		width: calc(100% - 20rpx);
	}

	.section-11{
		position: relative;
		top: -50rpx;
		z-index: 10;
		background-color: #fff;
		border-top-left-radius: 50rpx;
		border-top-right-radius: 50rpx;
		.list{
			width: 670rpx;
			box-sizing: border-box;
			margin-left: 40rpx;
			border-top: 2rpx solid #d8e4f2;
			.item{
				width: 100%;
				border-bottom: solid 2rpx #f2f2f0;
				letter-spacing: 2rpx;
				color: #3b3c40;
				text-overflow: ellipsis;
				overflow: hidden;
				white-space: nowrap;
				padding-top: 17rpx;
				padding-bottom: 20rpx;
				.text{
					width: 100%;
					height: 60rpx;
					line-height: 60rpx;
					display: flex;
					justify-content: space-between;
					font-size: 28rpx;
					font-weight: bold;
					font-stretch: normal;
					.poss{
						width: 90%;
						overflow: hidden;
						text-overflow:ellipsis;
						white-space: nowrap;
					}
				}
				.text-1{
					width: 100%;
					font-size: 14rpx;
					color: #7b9bb2;
				}
			}
		}

	}
	.section-01{
		width: 100%;
		// background-color: #2e5efe;
		.section-body{
			width: 100%;
			padding-left: 40rpx;
			height: 150rpx;
			padding-right: 40rpx;
			padding-bottom: 50rpx;
			// background-color: #1534ce;
			background-size: cover;
			background-repeat: no-repeat;
			border-top-left-radius: 50rpx;
			border-top-right-radius: 50rpx;
			overflow: hidden;
			box-sizing: border-box;
			.frequency{
				width: 100%;
				// height: 100rpx;
				line-height: 100rpx;
				font-size: 26rpx;
				color: #87c6ff;
				span{
					color: #fff;
				}
			}
			.item{
				width: 33.33%;
				float: left;
				display: flex;
				flex-wrap: wrap;
				align-content: space-between;
				padding-top: 40rpx;
				height: 100rpx;
				position: relative;
				.shape{
					width: 4rpx;
					height: 84rpx;
					background-image: linear-gradient(rgba(#3658f2, 0.3) 0%, #3658f2 30%, #3658f2 70%, rgba(#3658f2, 0.3) 100%,);
					position: absolute;
					right: 0;
					top: 48rpx;
				}
				.top{
					width: 100%;
					text-align: center;
					font-size: 16rpx;
					font-weight: normal;
					font-stretch: normal;
					letter-spacing: 0rpx;
					color: #95c4fa;
				}
				.bottom{
					width: 100%;
					text-align: center;
					font-size: 58rpx;
					font-weight: bold;
					font-stretch: normal;
					letter-spacing: 0rpx;
					color: #ffde00;
				}
			}
		}
	}


	.section-4 {
		width: 100%;
		background: #2e5efe;

		.section-body {
			width: 100%;
			height: 100%;
			border-top-left-radius: 50rpx;
			border-top-right-radius: 50rpx;
			background-color: #fff;
			overflow: hidden;
			.tab{

					width: 100%;
					height: 80rpx;
					@include clear();
					background-color: #1534ce;
					.item{
						width: 50%;
						float: left;
						height: 80rpx;
						background-color: #1534ce;
						position: relative;
						.label{
							height: 80rpx;
							line-height: 80rpx;
							position: relative;
							z-index: 10;
							box-sizing: border-box;
							text-align: center;
							width: 100%;
							font-size: 26rpx;
							font-weight: normal;
							font-stretch: normal;
							letter-spacing: 0rpx;
							color: #ffffff;
						}
						.shape{
							z-index: 1;
							width: 50rpx;
							height: 50rpx;
							position: absolute;
							bottom: 0;
							left: -50rpx;
							background: #000;
							display: none;
							background-color: #fff;
							overflow: hidden;
							.shape-body{
								width: 50rpx;
								height: 50rpx;
								background-color: #1534ce;
								border-bottom-right-radius: 40rpx;
							}
						}
						.shape-mirrow{
							z-index: 1;
							left: 0;
							display: none;
							.shape-body{
								border-bottom-right-radius: 0rpx;
								border-bottom-left-radius: 40rpx;
							}
						}
					}
					.item__active{
						border-top-left-radius: 40rpx;
						border-top-right-radius: 40rpx;
						background-color: #fff;
						.label{
							color: #46464a;
						}
						.shape{
							display: block;
						}
						.shape-mirrow{
							display: none;
						}
					}
					.item__active_next{
						border-bottom-right-radius: 50rpx;
						.shape{
							display: none;
						}
						.shape-mirrow{
							display: block;
						}
					}

			}
		}
	}






	.section-5{
		width: 100%;
		background-color: #2c5cff;
		.section-bdoy{
			border-top-left-radius: 50rpx;
			border-top-right-radius: 50rpx;
			background-color: #fff;
			overflow: hidden;
			width: 100%;
			height: 50rpx;
		}
	}
	.footer-space {
		height: 150rpx;
	}
	.footer {
		width: 100%;
		height: 150rpx;
		background-color: #ffffff;
		position: fixed;
		bottom: 0;
		left: 0;
		display: flex;
		justify-content: space-around;
		align-items: center;
		box-shadow: 0 0 20rpx 10rpx rgba(#bcbcb5, 0.17);

		.record {
			display: flex;
			justify-content: center;
			align-items: center;
			flex-direction: column;

			.icon-lishijilu_huaban {
				font-size: 43rpx;
				color: #3b3c40;
			}

			text {
				font-size: 26rpx;
				color: #3b3c40;
				margin-top: 10rpx;
			}
		}

		.submit {
			width: 287rpx;
			height: 83rpx;
			background-color: #1534ce;
			border-radius: 20rpx;
			letter-spacing: 14rpx;
			color: #ffffff;
			font-size: 26rpx;
			display: flex;
			justify-content: center;
			align-items: center;
		}
	}

	.section-1 {
		width: 670rpx;
		margin-left: 40rpx;
		height: 100rpx;
		background-color: #0535d6;
		box-shadow: 0rpx 13rpx 35rpx 0rpx rgba(51, 91, 222, 0.42);
		border-radius: 35rpx;
		margin-bottom: 90rpx;
		overflow: hidden;
		line-height: 100rpx;

		.label {
			float: left;
			font-size: 26rpx;
			font-weight: bold;
			font-stretch: normal;
			line-height: 100rpx;
			letter-spacing: 0rpx;
			margin-left: 40rpx;
			color: #ffffff;
		}
		.name{
			overflow: hidden;
			float: left;
			width: 300rpx;
			line-height: 100rpx;
			font-size: 26rpx;
			color: #ffffff;
			margin-left: 24rpx;
			text-overflow: ellipsis;
			white-space: nowrap;
		}

		.iconfont {
			margin-right: 70rpx;
			font-size: 42rpx;
			color: #fff;
			float: right;
		}
	}

	.content {
		.wrapper {
			width: 670rpx;
			margin-left: 40rpx;
			border-radius: 35rpx;
			background-size: cover;
			background-repeat: no-repeat;
			overflow: hidden;
			box-sizing: border-box;
			box-shadow: 0 0 20rpx 10rpx rgba(#bcbcb5, 0.17);
			padding: 28rpx 40rpx;

			.label {
				width: 135rpx;
				float: left;
				font-size: 26rpx;
				font-weight: bold;
				font-stretch: normal;
				height: 48rpx;
				line-height: 48rpx;
				letter-spacing: 0px;
				color: #46464a;
			}

			.title {
				width: 100%;
				height: 30rpx;
				line-height: 30rpx;
				border-bottom: solid 3rpx #f2f2f0;
				font-size: 26rpx;
				font-weight: bold;
				font-stretch: normal;
				letter-spacing: 0rpx;
				color: #46464a;
				padding-bottom: 28rpx;

				.iconfont {
					float: right;
					font-size: 30rpx;
					color: #46464a;
				}
			}

			.value {
				float: left;
				width: 445rpx;
				.input-2{
					width: 100%;
					height: 52rpx;
					border-radius: 20rpx;
					border: solid 2rpx #0535d6;
					line-height: 52rpx;
					position: relative;
					font-size: 26rpx;
					color: rgba(0, 0, 0, 0.7);
					box-sizing: border-box;
					// padding-left: 20rpx;
					text-align: center;
					color: #0535d6;
					padding-right: 50rpx;
					.input-body{
						box-sizing: border-box;
						width: 100%;
						height: 44rpx;
						padding: 0!important;
						border: none;
						padding-left: 30rpx!important;
						padding-right: 30rpx!important;
						font-size: 26rpx;
						font-weight: normal;
						font-stretch: normal;
						letter-spacing: 0rpx;
						color: rgba(0,0,0,0.7);
					}
					.iconfont{
						top: 0;
						position: absolute;
						right: 25rpx;
						line-height: 50rpx;
						color: #1534ce;
						font-size: 28rpx;
					}
					.input-placeholder{
						font-size: 26rpx;
						font-weight: normal;
						font-stretch: normal;
						letter-spacing: 0rpx;
						color: rgba(0,0,0,0.5);
					}
				}
				.audio {
					width: 50rpx;
					height: 50rpx;
					background-color: #ffffff;
					border-radius: 50%;
					box-shadow: 0 0 20rpx 10rpx rgba(#bcbcb5, 0.17);
					overflow: hidden;

					float: left;
					.audio-center {
						margin-top: 13rpx;
						margin-left: 13rpx;
						border-radius: 50%;
						width: 24rpx;
						height: 24rpx;
						background-color: #ed451b;
					}
					.audio-center__on{
						animation: scale 2s infinite;
					}
					.audio-center__fin{
						background-color: rgba(0, 0, 0, 0.5);;
					}
					@keyframes scale{
						0%{
							transform: scale(1);
							opacity: 1;
						}
						  50%{
							transform: scale(1.5);
							opacity: 0.5;
						  }
						  100%{
							transform: scale(1);
							opacity: 1;
						  }
					}
				}
				.fin-tips{
					height: 50rpx;
					line-height: 50rpx;
					font-size: 22rpx;
					color: rgba(0, 0, 0, 0.5);
					float: left;
					margin-left: 20rpx;
				}
				.time{
					position: absolute;
					right: 100rpx;
				}
				.upload-wrap {
					width: 100%;
					min-height: 48rpx;
					border-radius: 20rpx;
					border: solid 2rpx #0535d6;
					position: relative;
					.file_name{
						padding: 9rpx 0;
						line-height: 30rpx;
						color: #1534ce;
						font-size: 26rpx;
						word-break: break-all;
					}
					.iconfont {
						position: absolute;
						right: 25rpx;
						line-height: 48rpx;
						color: #1534ce;
						font-size: 28rpx;
						top: 2rpx;
					}
				}

				.date {
					width: 100%;
					height: 52rpx;
					border-radius: 20rpx;
					border: solid 2rpx #0535d6;
					line-height: 48rpx;
					position: relative;
					font-size: 26rpx;
					color: rgba(0, 0, 0, 0.7);
					box-sizing: border-box;
					// padding-left: 20rpx;
					text-align: center;
					color: #0535d6;
					padding-right: 50rpx;

					.iconfont {
						position: absolute;
						right: 25rpx;
						top: 0rpx;
						font-size: 30rpx;
						color: #0535d6;
					}
				}

				.picker {
					width: 100%;
					height: 48rpx;
					border-radius: 20rpx;
					border: solid 2rpx #0535d6;
					line-height: 44rpx;

					text {
						font-size: 26rpx;
						letter-spacing: 0rpx;
						color: #46464a;
						margin-left: 28rpx;
					}

					.iconfont {
						float: right;
						font-size: 32rpx;
					}
				}

				.input {
					padding-top: 18rpx;

					.input-body {
						box-sizing: border-box;
						width: 100%;
						height: 44rpx;
						padding: 0 !important;
						border: none;
						line-height: 44rpx;
						font-size: 26rpx;
						font-weight: normal;
						font-stretch: normal;
						letter-spacing: 0rpx;
						color: rgba(0, 0, 0, 0.7);
					}

					.input-placeholder {
						font-size: 26rpx;
						font-weight: normal;
						font-stretch: normal;
						letter-spacing: 0rpx;
						color: rgba(0, 0, 0, 0.5);
					}
				}

				.textarea {
					width: 100%;
					height: 200rpx;
					line-height: 30rpx;

					.textarea-body {
						box-sizing: border-box;
						width: 100%;
						height: 200rpx;
						border: none;
						padding: 18rpx 0rpx !important;
						font-weight: normal;
						font-stretch: normal;
						letter-spacing: 0rpx;

						/deep/ .u-textarea__field {
							height: auto !important;
							font-size: 25rpx;
						}
					}

					/deep/ .u-textarea--disabled {
						background-color: #fff;
					}

					.textarea-placeholder {
						font-size: 25rpx;
						font-weight: normal;
						font-stretch: normal;
						line-height: 50rpx;
						letter-spacing: 3rpx;
						color: rgba(0, 0, 0, 0.5);
					}
				}
			}

			.l-value {
				width: 100%;
			}
		}

		.section-0 {
			margin-bottom: 24rpx;

		}
	}

	.pop {
		width: 671rpx;
		padding-bottom: 40rpx;
		background-color: #fff;
		border-radius: 35rpx;
		overflow: hidden;

		.title {
			width: 100%;
			height: 96rpx;
			line-height: 96rpx;
			background-color: #1534ce;
			font-size: 42rpx;
			font-weight: normal;
			font-stretch: normal;
			letter-spacing: 4rpx;
			color: #ffffff;
			text-align: center;
		}
	}

	.user-pop{
		.form{
			width: 100%;
			padding: 0 40rpx;
			padding-top: 0rpx;
			box-sizing: border-box;
			position: relative;

			.area-container {
				position: absolute;
				top: 110rpx;
				left: 75rpx;
				z-index: 10;
				width: 600rpx;
				background-color: #1433cd;
				border-radius: 20rpx;
				box-sizing: border-box;
				padding: 24rpx;
				padding-bottom: 12rpx;

				&::before {
					position: absolute;
					top: -12rpx;
					left: 32rpx;
					content: '';
					border-bottom: 12rpx solid #1433cd;
					border-left: 12rpx solid transparent;
					;
					border-right: 12rpx solid transparent;
				}

				.item {
					padding: 0 18rpx;
					height: 44rpx;
					background-color: #fafbfd;
					border-radius: 20rpx;
					margin-bottom: 12rpx;
					color: #1433cd;
					font-size: 26rpx;
					text-align: center;
					line-height: 44rpx;
					float: left;
					margin-right: 12rpx;
				}

				.item__active {
					background-color: orange;
					color: #fff;
				}

			}

			.form-item2 {
				width: 100%;
				height: 48rpx;
				border-radius: 20rpx;
				border: solid 2rpx #1534ce;
				margin: 0 auto;
				margin-top: 10px;
				margin-bottom: 30rpx;
				@include clear();

				.label {
					float: left;
					width: 134rpx;
					height: 48rpx;
					text-align: center;
					line-height: 44rpx;
					font-size: 26rpx;
					font-weight: normal;
					font-stretch: normal;
					letter-spacing: 0rpx;
					color: #1534ce;
				}

				.shape {
					width: 3rpx;
					height: 32rpx;
					background-color: #7f98ae;
					float: left;
					margin-top: 8rpx;
				}

				.input {
					float: left;
					width: calc(100% - 134rpx - 3rpx);

					.input-body {
						box-sizing: border-box;
						width: 100%;
						height: 44rpx;
						padding: 0 !important;
						border: none;
						padding-left: 30rpx !important;
						padding-right: 30rpx !important;
						font-size: 26rpx;
						font-weight: normal;
						font-stretch: normal;
						letter-spacing: 0rpx;
						color: rgba(0, 0, 0, 0.7);
					}

					.input-placeholder {
						font-size: 26rpx;
						font-weight: normal;
						font-stretch: normal;
						letter-spacing: 0rpx;
						color: rgba(0, 0, 0, 0.5);
					}
				}

			}

			.actions {
				width: 100%;
				height: 50rpx;
				margin-top: 29rpx;
				padding-bottom: 40rpx;
				display: flex;
				justify-content: space-between;

				.action {
					width: 288rpx;
					height: 48rpx;
					background-color: #395cf5;
					border-radius: 20rpx;
					text-align: center;
					line-height: 48rpx;
					font-size: 26rpx;
					font-weight: normal;
					font-stretch: normal;
					line-height: 48rpx;
					color: #ffffff;

					text {
						&:first-child {
							margin-right: 20rpx;
						}
					}
				}

				.search {
					background-color: #1534ce;
				}
			}

			.form-item {
				width: 600rpx;
				height: 48rpx;
				border-radius: 20rpx;
				border: solid 2rpx #1534ce;
				margin: 0 auto;
				margin-bottom: 34rpx;
				@include clear();

				.label {
					float: left;
					width: 77rpx;
					height: 48rpx;
					text-align: center;
					line-height: 44rpx;
					font-size: 26rpx;
					font-weight: normal;
					font-stretch: normal;
					letter-spacing: 0rpx;
					color: #1534ce;
				}

				.shape {
					width: 3rpx;
					height: 32rpx;
					background-color: #7f98ae;
					float: left;
					margin-top: 8rpx;
				}

				.input {
					float: left;
					width: calc(100% - 77rpx - 80rpx - 3rpx);

					.input-body {
						box-sizing: border-box;
						width: 100%;
						height: 44rpx;
						line-height: 44rpx;
						font-size: 26rpx;
						font-weight: normal;
						font-stretch: normal;
						letter-spacing: 0rpx;
						color: #1534ce;
						text-align: center;
						text-overflow: ellipsis;
						overflow: hidden;
						white-space: nowrap;
					}
				}

				.action {
					float: left;
					width: 80rpx;
					line-height: 44rpx;
					height: 44rpx;
					text-align: center;
					font-size: 32rpx;
					color: #1534ce;
					transition: 0.3s ease;
				}

				.action__active {
					transform: rotate(180deg);
				}
			}

			.size2 {
				.label {
					width: 77rpx;
				}

				.input {
					width: calc(100% - 77rpx - 3rpx);
					position: relative;

					.iconfont {
						position: absolute;
						right: 25rpx;
						top: 7rpx;
						font-size: 30rpx;
						color: #dad9df;
					}
				}
			}


		}

		.body {
			padding: 0rpx 50rpx;
			@include clear;
			max-height: 50vh;
			margin-bottom: 40rpx;
			overflow-y: auto;
			.form-item{


				width: 600rpx;
				height: 48rpx;
				line-height: 48rpx;
				margin: 0 auto;
				margin-bottom: 25rpx;
				display: flex;
				align-items: center;

				&:last-child {
					margin-bottom: 34rpx;
				}

				&.upload-wrap {
					align-items: unset;
					height: unset;
					line-height: unset;
				}

				@include clear();

				.label {
					float: left;
					width: 130rpx;
					height: 48rpx;
					text-align: left;
					line-height: 44rpx;
					font-size: 26rpx;
					color: #46464a;
				}

				/deep/ .u-upload__wrap {
					// width: calc(100% - 206rpx) !important;
					width: calc(100%) !important;
					background-color: transparent;
				}

				.icon-tupian {
					position: absolute;
					right: 25rpx;
					line-height: 44rpx;
					color: #1534ce;
					font-size: 28rpx;
				}

				/deep/ .u-radio-label--left {
					margin-right: 55rpx;
				}

				/deep/ .u-radio__text {
					font-size: 26rpx !important;
					color: #46464a !important;
				}

				.input {
					float: left;
					width: calc(100% - 134rpx - 3rpx);
					border-radius: 20rpx;
					border: solid 2rpx #1534ce;

					.input-body {
						box-sizing: border-box;
						width: 100%;
						height: 44rpx;
						padding: 0 !important;
						border: none;
						padding-left: 30rpx !important;
						padding-right: 30rpx !important;
						font-size: 26rpx;
						font-weight: normal;
						font-stretch: normal;
						letter-spacing: 0rpx;
						color: rgba(0, 0, 0, 0.7);
					}

					.input-placeholder {
						font-size: 26rpx;
						font-weight: normal;
						font-stretch: normal;
						letter-spacing: 0rpx;
						color: rgba(0, 0, 0, 0.5);
					}
				}


			}
			.item {
				width: auto;
				height: 60rpx;
				@include clear();

				.check {
					width: 24rpx;
					height: 24rpx;
					border: solid 1rpx #000000;
					border-radius: 50%;
					float: left;
					margin-top: 16rpx;
					position: relative;

					.check-on {
						transition: 0.3s ease;
						opacity: 0;
						transform: scale(0.5);
						border-radius: 50%;
						position: absolute;
						top: 0;
						left: 0;
						right: 0;
						bottom: 0;
						margin: auto;
						width: 18rpx;
						height: 18rpx;
						background-color: #000000;
					}
				}

				.name {
					float: left;
					width: calc(100% - 24rpx - 40rpx);
					font-size: 26rpx;
					font-weight: 300;
					padding: 15rpx 0;
					font-stretch: normal;
					line-height: 30rpx;
					font-stretch: normal;
					letter-spacing: 0rpx;
					color: #000000;
					margin-left: 20rpx;
				}

				.check__active {
					.check-on {
						opacity: 1;
						transform: scale(1);
					}
				}
			}
		}

	}
</style>
